package com.czl.base.data.api

import com.czl.base.base.BaseBean
import com.czl.base.data.bean.tengyun.*
import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Field
import retrofit2.http.POST

interface TengyunService {
    /**
     * 获取疫情公告列表
     */
    @POST("public/2_0/EpidemicAnnouncement/selectAnnouncementAll")
    fun getNoticeList(@Body info: RequestBody): Observable<BaseBean<NoticeListBean>>
    /**
     * 阅读+1
     */
    @POST("public/2_0/EpidemicAnnouncement/updaReadingVolumeById")
    fun updaReadingVolumeById(@Body info: RequestBody): Observable<BaseBean<NoticeListBean>>
    /**
     * 根据Id查询
     */
    @POST("public/2_0/EpidemicAnnouncement/selectAnnouncementById")
    fun selectAnnouncementById(@Body info: RequestBody): Observable<BaseBean<NoticeListBean.Data>>
    /**
     * 健康上报列表
     */
    @POST("public/2_0/Healthy/selectHealthyAll")
    fun selectHealthyAll(@Body info: RequestBody): Observable<BaseBean<HealthReportBean>>
    /**
     * 健康上报列表
     */
    @POST("system/2_0/TAreaController/getAreaByUser")
    fun getAreaByUser(@Body info: RequestBody): Observable<BaseBean<HealthUserBean.Data>>
    /**
     * 健康上报查询
     */
    @POST("public/2_0/Healthy/selectHealthyAndRelativesById")
    fun selectHealthyAndRelativesById(@Body info: RequestBody): Observable<BaseBean<HealthReportBean.Data>>
    /**
     * 健康上报
     */
    @POST("public/2_0/Healthy/insertHealthyAndRelatives")
    fun addHealthReport(@Body info: RequestBody): Observable<BaseBean<Any?>>

    /**
     * 查询缴费账单
     */
    @POST("finance/2_0/BaseRoomInfoController/getBillByRoomIdList")
    fun getBillByRoomIdList(@Body info: RequestBody): Observable<BaseBean<HousesPaymentBean>>

    /**
     * 查询缴费账单明细
     */
    @POST("finance/2_0/BaseRoomInfoController/getDetailsByBillId")
    fun getDetailsByBillId(@Body info: RequestBody): Observable<BaseBean<PaymentData>>

    /**
     * 查询缴费账单明细
     */
    @POST("finance/5_0/bill/payChdBill")
    fun payChdBill(@Body info: RequestBody): Observable<BaseBean<HouseOrderPayBean>>
}